为了避免这些麻烦,你可以实现一个策略模式(Strategy Pattern)和适配器模式(Adapter Pattern)的变体,这两种模式能够很好的处理这种问题。
基于24个网页-相关网页
... 原型模式(Prototype Pattern) 和定义组合对象获得新功能的方式。 适配器模式(Adapter Pattern) 桥接模式(Bridge Pattern) ...
基于1个网页-相关网页
The Adapter Pattern 适配器模式
Default Adapter Pattern 缺省适配器模式
Adapter Pattern & Facade Pattern 适配器模式和外观模式
Object Adapter Pattern 对象适配器模式
Integration Adapter Pattern 成适配器模式
adapter design pattern 适配器设计模式
Design Pattern - Adapter 适配器模式
以上来源于: WordNet
应用推荐